﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.MicroKernel.Registration;
using MyStore.Products;

namespace MyStore.PresentationModel.Installers
{
    public class ServicesInstaller : IWindsorInstaller
    {
        #region IWindsorInstaller 成员

        public void Install(Castle.Windsor.IWindsorContainer container, Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
        {
            container.Register(Component.For<IProductRepository>()
                .ImplementedBy<ProductRepository>());

            container.Register(Component.For<IProductService>()
                .ImplementedBy<ProductService>());

        }

        #endregion
    }
}
